/*
 * ******************************************************
 *   Copyright ©, 2017-2020, 安徽财金信息科技有限公司
 * ******************************************************
 */
package com.wy.poties.common.intercepter;

import lombok.extern.slf4j.Slf4j
import org.springframework.stereotype.Component
import org.springframework.web.servlet.HandlerInterceptor
import org.springframework.web.servlet.ModelAndView
import javax.servlet.http.HttpServletRequest
import javax.servlet.http.HttpServletResponse

/**
 * <p>Title:</p>
 * 一句话功能说明
 * <p>Description:</p>
 *  功能描述
 *
 * @author cj021_汪洋
 * @date 2020-11-12 13:48
 * @version 1.0
 */
@Slf4j
@Component
class CryptInterceptor : HandlerInterceptor {


    override fun preHandle(request: HttpServletRequest, response: HttpServletResponse, handler: Any): Boolean {

        System.out.println("preHandle" + request.parameterMap)
        System.out.println("preHandle" + response)
        return super.preHandle(request, response, handler)
    }

    override fun postHandle(request: HttpServletRequest, response: HttpServletResponse, handler: Any, modelAndView: ModelAndView?) {
        System.out.println("postHandle" + request)
        System.out.println("postHandle" + response.toString())
        super.postHandle(request, response, handler, modelAndView)
    }
}